package cn.tedu.spring6.service;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Order(2)
public class SecurityAspect {
    //通知+切点
    //@Before("execution(* cn.tedu.spring6.service..*(..))")
    @Before("cn.tedu.spring6.service.LogAspect.universalCuttingPoint()")
    public  void beforeAdvice(){
        System.out.println("前置通知：安全");
    }
}
